package com.huiyi.pan.server.common.event.file;

import com.huiyi.pan.server.modules.file.entity.HPanUserFile;
import lombok.*;
import org.springframework.context.ApplicationEvent;

import java.io.Serializable;
import java.util.List;

/**
 * 文件被物理删除的事件实体
 */
@Getter
@Setter
@EqualsAndHashCode
@ToString
public class FilePhysicalDeleteEvent extends ApplicationEvent {

    private static final long serialVersionUID = 3959988542308316628L;

    /**
     * 所有被物理删除的文件实体集合
     */
    private List<HPanUserFile> allRecords;

    public FilePhysicalDeleteEvent(Object source, List<HPanUserFile> allRecords) {
        super(source);
        this.allRecords = allRecords;
    }

}
